package com.whfc.fse.param.msg;

import lombok.Data;

import java.util.Date;

/**
 * @Description: 塔机设备参数上传
 * @author: xugcheng
 * @version: 1.0
 * @date: 2020/5/21 14:32
 */
@Data
@Deprecated
public class FseMsg0x0202 extends FseMsg {

    /**
     * 服务器时间
     */
    private Date time;

    /**
     * 参数格式版本
     */
    private int ver;

    /**
     * 高度
     */
    private float height;

    /**
     * 臂长
     */
    private float armLength;

    /**
     * 绳索倍率
     */
    private int ropeRatio;

    /**
     * 高度量程下限
     */
    private float minHeight;

    /**
     * 高度下限实时信号
     */
    private long minHeightSignal;

    /**
     * 高度量程上限
     */
    private float maxHeight;

    /**
     * 高度上限实时信号
     */
    private long maxHeightSignal;

    /**
     * 回转量程下限
     */
    private float minTurn;

    /**
     * 回转下限实时信号
     */
    private long minTurnSignal;

    /**
     * 回转量程上限
     */
    private float maxTurn;

    /**
     * 回转上限实时信号
     */
    private long maxTurnSignal;

    private float minWeight;

    private long minWeightSignal;

    private float maxWeight;

    private long maxWeightSignal;

    private float minRange;

    private long minRangeSignal;

    private float maxRange;

    private long maxRangeSignal;

    private int dipX;

    private int dipY;

    private float windSpeedCoefficient;

    private int windSpeedSignal;

    private float startRange;

    private float startWeight;

    private float endRange;

    private float endWeight;

    /**
     * 回转传感器类型
     */
    private int turnSensorType;

    /**
     * 平台通用应答
     */
    private Integer reply;

    public FseMsg0x0202() {
        this.setFrameHeader(FseMsgConst.FRAME_START_FALG);
        this.setOpType(FseMsgConst.OP_TYPE_R);
        this.setCmd(FseMsgConst.FSE_UP_CMD_0X0202);
        this.setDataLenth(108);
    }

    public void setReply(Integer reply) {
        this.reply = reply;
        this.setDataLenth(1);
    }
}
